fix: Incorrect route after reloading the page with the backTo parameter#83009
fix: Incorrect route after reloading the page with the backTo parameter#83009Eskalifer1 wants to merge 1 commit intoExpensify:mainfrom
Conversation
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
JmillsExpensify
left a comment
There was a problem hiding this comment.
PR behavior is in line with product spec.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-26.at.7.57.34.am.mov |
| const stateForBackTo = getStateFromPath(route.params.backTo as RoutePath); | ||
| const normalizedBackTo = normalizePath(route.params.backTo); | ||
| const stateForBackTo = getStateFromPath(normalizedBackTo as RoutePath); |
There was a problem hiding this comment.
Please add unit test
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Hi @aimane-chnaif, I can add tests later if necessary, but I noticed that this bug no longer reproduces (neither on staging nor on prod). What should we do in such situations? |
|
Indeed not reproduced. Let's close this then. |
|
Should i just close this PR, or we should tag an internal developer before? |
|
Just close |
|
Closing since this bug is not reproducible anymore! |
Explanation of Change
This PR fixes a bug where, after reloading a page with the backTo parameter, an incorrect route was formed when navigating to the previous page (adding instead of replacing).
Fixed Issues
$#82598
PROPOSAL:#82598 (comment)
Tests
Offline tests
No offline steps
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
82598-android-web.mp4
iOS: Native
iOS: mWeb Safari
82598-ios-web.mp4
MacOS: Chrome / Safari
82598-web.mov